/** @format */

import { ref } from 'vue'
import * as yup from 'yup'
import { ComponentsType } from './conf' // 引入组件类型'
import { FormProSchemaBox } from './types'

export const theInitialValues = ref<any>([
  {
    field: 'name',
    label: '姓名',
    type: ComponentsType.Input,
    fieldValue: '',
    rule: yup.string().required().label('Email Address'),
  },
  {
    field: 'textarea',
    label: '文本框',
    type: ComponentsType.Textarea,
    fieldValue: '',
    rule: yup.string().required(),
  },
  {
    field: 'sex',
    label: '选择性别',
    type: ComponentsType.Select,
    fieldValue: '',
    props: {
      options: [
        { label: '男', value: '男' },
        { label: '女', value: '女' },
      ],
    },
  },
])
